<template>
  <el-table
      class="table"
      :data="tableData"
      stripe
      style="width: 100%">
    <el-table-column
        prop="address"
        label="选择"
        width="50">
      <template slot-scope="scope">
        <el-radio v-model="radioSelect"
                  :label="scope.row.id"
                  @change.native="handleRadioChange(scope.row)"
        >&nbsp;
        </el-radio>
      </template>
    </el-table-column>
    <el-table-column
        prop="name"
        label="车辆档案号"
        width="170">
    </el-table-column>
    <el-table-column
        prop="time"
        label="车辆性质"
        width="100">
    </el-table-column>
    <el-table-column
        prop="time"
        label="车牌号"
        width="120">
    </el-table-column>
    <el-table-column
        prop="time"
        label="行驶证号"
        width="250">
    </el-table-column>
    <el-table-column
        prop="address"
        label="所属网点"
        width="100">
    </el-table-column>
    <el-table-column
        prop="address"
        label="车型"
        width="100">
    </el-table-column>
    <el-table-column
        prop="address"
        label="车辆规格(m)"
        width="100">
    </el-table-column>
    <el-table-column
        prop="address"
        label="车辆状态"
        width="100">
    </el-table-column>
    <el-table-column
        prop="address"
        label="当前位置"
        width="130">
    </el-table-column>
    <el-table-column
        prop="address"
        label="已载货量(kg)"
        width="120">
    </el-table-column>
    <el-table-column
        prop="address"
        label="额定数量(T)"
        width="100">
    </el-table-column>
    <el-table-column
        prop="address"
        label="新增时间"
        width="150">
    </el-table-column>

  </el-table>
</template>

<script>
export default {
  name: "carsManage",
  props:{
    tableData: [],
    identity: String,
  },
  data(){
    return{
      radioSelect: '1',
    }
  },
  created() {
    this.init()
  },
  methods:{
    async init(){

    },

    // 选择单选框
    handleRadioChange(row) {
      console.log(row)
    },
  }
}
</script>

<style scoped>

</style>